package com.sast.device;

import lombok.Data;
import lombok.Getter;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

@Data
public class XmlClass {
    private String name;
    private List<DeviceConfiguration> configurations = new ArrayList<>();
    private List<DeviceCommand> commands = new ArrayList<>();

    @Data
    public static class DeviceConfiguration implements Serializable {
        private String name;
        private String value;
    }

    @Data
    public static class DeviceCommand implements Serializable {
        private String name;
        private String value;
        private String description;
        private String action;
        private List<Arg> args = new ArrayList<>();

        @Data
        public static class Arg implements Serializable {
            private String name;
            private String type;
        }
    }

}
